import request from "@/utils/request";

export function listMsg(data) {
    return request({
        url: '/sxtyht-worder/wkoMsg/getPageList',
        method: 'post',
        data: data
    })
}

export function saveMsg(data) {
    return request({ ///sxtyht-worder/wkOrder
        url: '/sxtyht-worder/wkoMsg/save',
        method: 'post',
        data: data
    })
}

export function pushMsg(data) {
    return request({ ///sxtyht-worder/wkOrder
        url: '/sxtyht-worder/wkoMsg/push',
        method: 'post',
        data: data
    })
}

export function getMsgById(pkId) {
    return request({
        url: '/sxtyht-worder/wkoMsg/getMsgById/'+pkId,
        method: 'get'
    })
}


export function getMsgRecvByUserId(data) {
    return request({
        url: '/sxtyht-worder/wkoMsg/getMsgRecvPageListByUserId',
        method: 'post',
        data: data
    })
}
